

package com.abbh.libcommunity.model ;

import java.util.HashSet;
/**
 *
 *
 * @hibernate.class
 *     table="COMMUNITY"
 *
 */
public class Community {

    
    
    
    // <editor-fold defaultstate="collapsed" desc=" 1-N  Relation to Collection /*com.abbh.libcommunity.model.Address*/ addresss ">
    private java.util.Collection addresss = new HashSet();
    
    /**
     * @hibernate.set
     *     role="addresss"
     * @hibernate.collection-key
     *     column="COMMUNITY_ID"
     * @hibernate.collection-one-to-many
     *     class="com.abbh.libcommunity.model.Address"
     *  @hibernate.set
     *      cascade="all"
     *      lazy="true"
     */
    public java.util.Collection getAddresss() {
        return this.addresss;
    }
    
    public void setAddresss(java.util.Collection addresss) {
        this.addresss = addresss;
    }
    // </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc=" 1-N  Relation to Collection /*com.abbh.libcommunity.model.Phone*/ phones ">
    private java.util.Collection phones = new HashSet();
    
    /**
     * @hibernate.set
     *     role="phones"
     * @hibernate.collection-key
     *     column="COMMUNITY_ID"
     * @hibernate.collection-one-to-many
     *     class="com.abbh.libcommunity.model.Phone"
     * @hibernate.set
     *      cascade="all"
     *      lazy="true"
     */
    public java.util.Collection getPhones() {
        return this.phones;
    }
    
    public void setPhones(java.util.Collection phones) {
        this.phones = phones;
    }
    // </editor-fold>

    // <editor-fold defaultstate="collapsed" desc=" Property:   String name ">
    private String name;
    /**
     *   @hibernate.property
     *     column="NAME"
     *   @hibernate.column
     *     name="NAME"
     */
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    // </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc=" Property:   String description ">
    private String description;
    /**
     *   @hibernate.property
     *     column="DESCRIPTION"
     *   @hibernate.column
     *     name="DESCRIPTION"
     */
    public String getDescription() {
        return description;
    }
    public void setDescription(String description) {
        this.description = description;
    }
    // </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc=" Property:   String code ">
    private String code;
    /**
     *   @hibernate.property
     *     column="CODE"
     *   @hibernate.column
     *     name="CODE"
     */
    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    // </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc=" Property:   String logo ">
    private String logo;
    /**
     *   @hibernate.property
     *     column="LOGO"
     *   @hibernate.column
     *     name="LOGO"
     */
    public String getLogo() {
        return logo;
    }
    public void setLogo(String logo) {
        this.logo = logo;
    }
    // </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc=" Property:   java.sql.Date creationDate ">
    private java.sql.Date creationDate;
    /**
     *   @hibernate.property
     *     column="CREATION_DATE"
     *   @hibernate.column
     *     name="CREATION_DATE"
     */
    public java.sql.Date getCreationDate() {
        return creationDate;
    }
    public void setCreationDate(java.sql.Date creationDate) {
        this.creationDate = creationDate;
    }
    // </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc=" Property:   String createdUser ">
    private String createdUser;
    /**
     *   @hibernate.property
     *     column="CREATED_USER"
     *   @hibernate.column
     *     name="CREATED_USER"
     */
    public String getCreatedUser() {
        return createdUser;
    }
    public void setCreatedUser(String createdUser) {
        this.createdUser = createdUser;
    }
    // </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc=" Property:   java.sql.Date lastModifiedDate ">
    private java.sql.Date lastModifiedDate;
    /**
     *   @hibernate.property
     *     column="LAST_MODIFIED_DATE"
     *   @hibernate.column
     *     name="LAST_MODIFIED_DATE"
     */
    public java.sql.Date getLastModifiedDate() {
        return lastModifiedDate;
    }
    public void setLastModifiedDate(java.sql.Date lastModifiedDate) {
        this.lastModifiedDate = lastModifiedDate;
    }
    // </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc=" Property:   String lastModifiedUser ">
    private String lastModifiedUser;
    /**
     *   @hibernate.property
     *     column="LAST_MODIFIED_USER"
     *   @hibernate.column
     *     name="LAST_MODIFIED_USER"
     */
    public String getLastModifiedUser() {
        return lastModifiedUser;
    }
    public void setLastModifiedUser(String lastModifiedUser) {
        this.lastModifiedUser = lastModifiedUser;
    }
    // </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc=" PrimaryKey:   String id ">
    private String id;
    /**
     *   @hibernate.id
     *     generator-class="increment"
     */
    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }
    //</editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc=" N-1  Relation to com.abbh.libcommunity.model.CommunityType communityType ">
    private com.abbh.libcommunity.model.CommunityType communityType;
    
    /**
     * @hibernate.many-to-one
     *     column="COMMUNITY_TYPE_ID"
     *     class="com.abbh.libcommunity.model.CommunityType"
     *     not-null="false"
     *     outer-join="auto"
     */
    public com.abbh.libcommunity.model.CommunityType getCommunityType() {
        return this.communityType;
    }
    
    public void setCommunityType(com.abbh.libcommunity.model.CommunityType communityType) {
        this.communityType = communityType;
    }
    // </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc=" M-N  Relation to Collection /*com.abbh.libcommunity.model.User*/ users ">
    private java.util.Collection users=new HashSet();
    
    /**
     * @hibernate.set
     *     role="users"
     *     table="USER_COMMUNITY"
     * @hibernate.collection-key
     *     column="USER_ID"
     * @hibernate.collection-many-to-many
     *     class="com.abbh.libcommunity.model.User"
     *     column="COMMUNITY_ID"
     *   @hibernate.set
     *      cascade="all"
     *     lazy="true"
     *
     */
    public java.util.Collection getUser() {
        return this.users;
    }
    
    public void setUser(java.util.Collection users) {
        this.users = users;
    }
    // </editor-fold>
}
